import Vuex from 'vuex'
import Vue from 'vue'
Vue.use(Vuex)
let store = new Vuex.Store({
    state:{
        count:0,
    },
    getters:{
        number:state =>{
            return state.count
        }
    },
    mutations:{
        increment (state) {
            state.count ++
        }
    }
})

export default store;